<?php
	class News extends Controller{
		function News(){
			parent::Controller();	
		}
		
		function index(){
			
		}
		
		function article($id){
			$this->load->model("news_m","n", TRUE);
			$this->load->view('header_view');
			
			$news = $this->n->retr_news($id);
			
			$data['id'] = $news[0]["id"];
			$data['title'] = $news[0]["title"];
			$data['date'] = $news[0]["date"];
			$data['introtext'] = $news[0]["introtext"];
			$data['fulltext'] = $news[0]["fulltext"];
			$data['author'] = $news[0]["author"];
			
			$this->load->view('article_view', $data);
			$this->load->view('footer_view');
		}
	}
?>